package com.qingfeng.activiti.service;

import com.qingfeng.entity.MyResponse;
import com.qingfeng.entity.activiti.BusinessStatusEnum;

/**
 * @author cb
 * @Description TODO
 * @date 2023/6/7
 */
public interface IBusinessStatusService {

    /**
     * 新增数据：状态 WAIT(1, "待提交")
     * @param businessKey
     * @return
     */
    int add(String businessKey);

    /**
     * 更新业务状态
     * @param businessKey 业务id
     * @param statusEnum 状态值
     * @param procInstId 流程实例id
     * @return
     */
    MyResponse updateState(String businessKey, BusinessStatusEnum statusEnum, String procInstId);

    /**
     * 更新业务状态
     * @param businessKey 业务id
     * @param statusEnum 状态值
     * @return
     */
    MyResponse updateState(String businessKey, BusinessStatusEnum statusEnum);
}
